package com.hzmg.filter.factory;

import akka.http.scaladsl.server.util.Tuple;
import com.hzmg.filter.GatewayFilter;
import com.hzmg.support.util.NameUtils;

/**
 * 过滤器工厂（待实现）
 */
public interface GatewayFilterFactory {
    String NAME_KEY = "name";
    String VALUE_KEY = "value";

    GatewayFilter apply(Tuple args);

    default String name() {
        return NameUtils.normalizeFilterName(getClass());
    }
}
